# Author:Foru

# 用户输入

# 会员每天5次，非会员每天4次
vip_user_data = "foru,minyi,lai,tan"
vip_password_data = "123456,456789,654789,456123"
common_user_data = "xa,xb,xc"
common_password_data = "011,022,033"

count = 3 #循环次数,即登录次数只有三次
count_vip = 5 # vip查询次数
count_common = 4 #普通用户查询次数

time_week01 = "星期一"
time_week02 = "星期二"
time_week03 = "星期三"
time_week04 = "星期四"
time_week05 = "星期五"
time_week06 = "星期六"
time_week07 = "星期日"

while True:
    count -=1
    username = input("请输入您的账号：")
    password = input("请输入您的密码：")
    if username in vip_user_data:
        if password in vip_password_data:
            print("欢迎VIP用户登录课程表，请查收您今天的课程！！！")
            import datetime
            time = datetime.datetime.today().weekday() # 导入模块
            week_time = int(time)  # int整数
            # 显示出当天课表
            if week_time == 0:
                print("08:00-09:30 定向越野 西体");
                print("10:35-12:00 大英 10-204");
                print("14:30-16:50 毛概 9-207");
            elif week_time == 1:
                print("14:30-15:55 新闻评论 3实206")
                print("18:45-20:10 摄影赏析 2-106")
                print("20:15-21:45 非遗赏析 4-206")
            elif week_time == 2:
                print("09:45-12:00 融合新闻学 新综612");
                print("18:45-20:10 大英 10-204");
            elif week_time == 3:
                print("09:45-12:00 Python 新综612")
                print("14:30-16:50 创业实践 1-301")
            elif week_time == 4:
                print("08:00-09:30 AI 新综612")
                print("10:35-12:00 毛概实践 7-402")
            else:
                print("WEEKEND!");
                print("REST AND HAPPY!")
            # 查询其他星期的课表
            while count_vip > 0:  # 用while循环
                count_vip -=1
                time = str(input('还可查询非当天的课程哦！请输入还想要了解的星期：'))
                if time == time_week01:
                    print("08:00-09:30 定向越野 西体");
                    print("10:35-12:00 大英 10-204");
                    print("14:30-16:50 毛概 9-207");
                elif time == time_week02:
                    print("14:30-15:55 新闻评论 3实206")
                    print("18:45-20:10 摄影赏析 2-106")
                    print("20:15-21:45 非遗赏析 4-206")
                elif time == time_week03:
                    print("09:45-12:00 融合新闻学 新综612");
                    print("18:45-20:10 大英 10-204");
                elif time == time_week04:
                    print("09:45-12:00 Python 新综612")
                    print("14:30-16:50 创业实践 1-301")
                elif time == time_week05:
                    print("08:00-09:30 AI 新综612")
                    print("10:35-12:00 毛概实践 7-402")
                elif time == time_week06:
                    print("周六就玩一玩吧！")
                elif time == time_week07:
                    print("好好休息一下，明天又要上课啦！")
                else:
                    print("您输入的星期有误哦，请正确输入，如：星期一")
            else:
                print("您的查询余额为0，请明天再来")
                break
        else:
            if count_vip == 0:
                print("您已输错三次了哦，明天再来吧！")
                break
            else:
                print("您的账号或者密码有误，请重新输入，您还有，count,次机会")
# 非会员用户登录
    elif username in common_user_data:
        if password in common_password_data:
            print("欢迎使用本课程表！请查收您今天的课程！")
            import datetime
            time = datetime.datetime.today().weekday()
            week_time = int(time)
            if week_time == 0:
                print("08:00-09:30 定向越野 西体");
                print("10:35-12:00 大英 10-204");
                print("14:30-16:50 毛概 9-207");
            elif week_time == 1:
                print("14:30-15:55 新闻评论 3实206")
                print("18:45-20:10 摄影赏析 2-106")
                print("20:15-21:45 非遗赏析 4-206")
            elif week_time == 2:
                print("09:45-12:00 融合新闻学 新综612");
                print("18:45-20:10 大英 10-204");
            elif week_time == 3:
                print("09:45-12:00 Python 新综612")
                print("14:30-16:50 创业实践 1-301")
            elif week_time == 4:
                print("08:00-09:30 AI 新综612")
                print("10:35-12:00 毛概实践 7-402")
            else:
                print("WEEKEND!");
                print("REST AND HAPPY!")

            while count_common > 0:
                count_common -=1
                time = str(input('还可查询非当天的课程哦！请输入还想要了解的星期：'))
                if time == time_week01:
                    print("08:00-09:30 定向越野 西体");
                    print("10:35-12:00 大英 10-204");
                    print("14:30-16:50 毛概 9-207");
                elif time == time_week02:
                    print("14:30-15:55 新闻评论 3实206")
                    print("18:45-20:10 摄影赏析 2-106")
                    print("20:15-21:45 非遗赏析 4-206")
                elif time == time_week03:
                    print("09:45-12:00 融合新闻学 新综612");
                    print("18:45-20:10 大英 10-204");
                elif time == time_week04:
                    print("09:45-12:00 Python 新综612")
                    print("14:30-16:50 创业实践 1-301")
                elif time == time_week05:
                    print("08:00-09:30 AI 新综612")
                    print("10:35-12:00 毛概实践 7-402")
                elif time == time_week06:
                    print("周六就玩一玩吧！")
                elif time == time_week07:
                    print("好好休息一下，明天又要上课啦！")
                else:
                    print("您输入的星期有误哦，请正确输入，如：星期一")
            else:
                print("您的查询余额为0，请明天再来")
                break
    elif count == 0:
        print("您已输错三次了，请明天再来")
    else:
        print("您的账号或者密码有误，请重新输入，您还有，count,次机会")
